Skip to main content

Model Settings

The model settings define the core parameters and metadata of the entire model — including the model name, description, simulation time frame, and functions that apply globally across the model.

FieldInput TypePurpose
StartIntegerStart time in the chosen time unit
DurationIntegerTime span over which the simulation should run
IntervalNumeric valueTime steps within the simulation period
UnitNumeric value (dropdown)Defines the time dimension
AlgorithmEuler or RK4Calculation method, depending on the complexity of the model
Globals & MacrosFunctionsFunction definitions that apply to the entire model

Calculation Methods

The Urban Model Builder offers two basic calculation methods, selectable in the global model settings:
the Euler method (Euler) and the Runge–Kutta method (RK4).
Below is a brief explanation of both algorithms.


Euler Method

A simple numerical method for solving differential equations.
In System Dynamics models, it is used to simulate the time evolution of dynamic systems.
The simple Euler method calculates the future value of a variable x based on its current value and its rate of change:

x(t+Δt)=x(t)+Δtdxdt(t)x(t + \Delta t) = x(t) + \Delta t \cdot \frac{dx}{dt}(t)

Where:

x(t):Current value of the state variable (Stock)Δt:Time stepdxdt(t):Rate of change\begin{aligned} x(t) & : \text{Current value of the state variable (Stock)} \\ \Delta t & : \text{Time step} \\ \frac{dx}{dt}(t) & : \text{Rate of change} \end{aligned}

Runge–Kutta Method

A more precise numerical method for solving differential equations than Euler’s method.
While the Euler method uses the current rate of change to determine the next state,
the fourth-order Runge–Kutta method (RK4) takes multiple estimates of the rate of change within a single time step and combines them to produce a more accurate prediction.

This method is especially recommended for complex models or simulations over longer time horizons.